import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux';
import { Router, Route, Redirect, IndexRoute, hashHistory } from 'react-router';

import wrapper from '../../wrapper';
import workflows from '../component/workflows';
import detail from '../component/detail';



const RouteConfig = (
    <Router history={hashHistory}>
        <Route component={wrapper} currentPage="workflowsManage">
            <IndexRoute component={workflows} />
            <Route path="/workflows" component={workflows} />
            <Route path="/detail" component={detail} />
            
        </Route>
        <Redirect from='*' to='/workflows' />
    </Router>
);

export default RouteConfig;